import { ref,computed} from "vue";
export const open=ref("")
export const blur=ref(true)
export const click=ref(false)

export function useHook(id){
	const state=computed(()=>{
		if(open.value===id){
			if(blur.value===true||click.value){
				click.value=false
				return "action"
			}else{
				return "blur"
			}
		}
		return ""
	})
	return {
		state
	}
}
